﻿<UserControl x:Class="FIFP.DashBoard.Views.Scanario"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"   
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"   
    xmlns:telerikChart="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting"
    xmlns:telerikCharting="clr-namespace:Telerik.Windows.Controls.Charting;assembly=Telerik.Windows.Controls.Charting"
    mc:Ignorable="d"             
    d:DesignHeight="600" d:DesignWidth="800">

    <Grid x:Name="LayoutRoot" Background="{StaticResource MainBackground}">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="180"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <StackPanel Orientation="Vertical" Margin="0,0,15,0">
            <TextBlock TextWrapping="Wrap" Text="Start Date" Style="{StaticResource SmallHeading}" VerticalAlignment="Top" Margin="0,0,0,4"/>
            <sdk:DatePicker Style="{StaticResource DatePickerStyle}" Margin="0,0,0,10" d:LayoutOverrides="Height" />
            <TextBlock TextWrapping="Wrap" Text="End Date" Style="{StaticResource SmallHeading}" VerticalAlignment="Top" Margin="0,0,0,4"/>
            <sdk:DatePicker Style="{StaticResource DatePickerStyle}" Margin="0,0,0,4" d:LayoutOverrides="Height"/>

            <StackPanel Margin="5,40,0,5">
                <CheckBox Name="ScenarioA" Content="Scenario A" Foreground="White" FontSize="14"  Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked"/>
                <CheckBox Name="ScenarioB" Content="Scenario B" Foreground="White" FontSize="14"  Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked" />
                <CheckBox Name="ScenarioC" Content="Scenario C" Foreground="White" FontSize="14"  Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked"/>
                <CheckBox Name="ScenarioD" Content="Scenario D" Foreground="White" FontSize="14"  Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked"/>
            </StackPanel>

        </StackPanel>


        <StackPanel Grid.Column="1">
            <telerikChart:RadChart x:Name="testChart" Style="{StaticResource ChartStyle}" TitleStyle="{StaticResource ChartTitleStyle}" LegendStyle="{StaticResource ChartLegendStyle}">
                <telerikChart:RadChart.DefaultView>
                    <telerikCharting:ChartDefaultView ChartLegendPosition="Top">

                        <telerikCharting:ChartDefaultView.ChartTitle>
                            <telerikCharting:ChartTitle Content="" HorizontalAlignment="Stretch"/>
                        </telerikCharting:ChartDefaultView.ChartTitle>

                        <telerikCharting:ChartDefaultView.ChartLegend>
                            <telerikCharting:ChartLegend x:Name="chartLegend" Header=""/>
                        </telerikCharting:ChartDefaultView.ChartLegend>

                        <telerikCharting:ChartDefaultView.ChartArea>

                            <telerikCharting:ChartArea LegendName="chartLegend"   PlotAreaStyle="{StaticResource ClipPanelStyle}">

                                <telerikCharting:ChartArea.AxisX>
                                    <telerikCharting:AxisX Title="" IsDateTime="False" LayoutMode="Between">
                                        <telerikCharting:AxisX.AxisStyles>
                                            <telerikCharting:AxisStyles AxisLineStyle="{StaticResource AxisLineStyle}" TickLineStyle="{StaticResource AxisTickStyle}" GridLineStyle="{StaticResource GridLineStyle}" ItemLabelStyle="{StaticResource XItemLabelStyle}" TitleStyle="{StaticResource AxisTitleStyle}">
                                            </telerikCharting:AxisStyles>
                                        </telerikCharting:AxisX.AxisStyles>
                                    </telerikCharting:AxisX>
                                </telerikCharting:ChartArea.AxisX>

                                <telerikCharting:ChartArea.AxisY>
                                    <telerikCharting:AxisY Title="MBD"  StripLinesVisibility="Collapsed" MajorGridLinesVisibility="Visible" MinorTicksVisibility="Collapsed" ExtendDirection="None" >
                                        <telerikCharting:AxisY.AxisStyles>
                                            <telerikCharting:AxisStyles AxisLineStyle="{StaticResource AxisLineStyle}" TickLineStyle="{StaticResource AxisTickStyle}" GridLineStyle="{StaticResource GridLineStyle}" ItemLabelStyle="{StaticResource YItemLabelStyle}" TitleStyle="{StaticResource AxisTitleStyle}">
                                            </telerikCharting:AxisStyles>
                                        </telerikCharting:AxisY.AxisStyles>
                                    </telerikCharting:AxisY>
                                </telerikCharting:ChartArea.AxisY>

                                <telerikCharting:ChartArea.DataSeries>

                                   

                                    <!--<telerikCharting:DataSeries LegendLabel="Scenario B" >
                                        <telerikCharting:DataSeries.Definition>
                                            <telerikCharting:LineSeriesDefinition >
                                                <telerikCharting:LineSeriesDefinition.Appearance>
                                                    <telerikCharting:SeriesAppearanceSettings Stroke="Yellow" StrokeThickness="2" Fill="Transparent"/>
                                                </telerikCharting:LineSeriesDefinition.Appearance>
                                            </telerikCharting:LineSeriesDefinition>
                                        </telerikCharting:DataSeries.Definition>

                                        <telerikCharting:DataPoint YValue="284" XCategory="Jan"/>
                                        <telerikCharting:DataPoint YValue="302" XCategory="Feb"/>
                                        <telerikCharting:DataPoint YValue="299" XCategory="Mar"/>
                                        <telerikCharting:DataPoint YValue="277" XCategory="Apr"/>
                                        <telerikCharting:DataPoint YValue="275" XCategory="May"/>
                                        <telerikCharting:DataPoint YValue="275" XCategory="Jun"/>
                                        <telerikCharting:DataPoint YValue="270" XCategory="Jul"/>
                                        <telerikCharting:DataPoint YValue="260" XCategory="Aug"/>
                                        <telerikCharting:DataPoint YValue="265" XCategory="Sep"/>
                                        <telerikCharting:DataPoint YValue="260" XCategory="Oct"/>
                                        <telerikCharting:DataPoint YValue="260" XCategory="Nov"/>
                                        <telerikCharting:DataPoint YValue="260" XCategory="Dec"/>

                                    </telerikCharting:DataSeries>-->

                                </telerikCharting:ChartArea.DataSeries>
                                
                            </telerikCharting:ChartArea>
                        </telerikCharting:ChartDefaultView.ChartArea>
                    </telerikCharting:ChartDefaultView>
                </telerikChart:RadChart.DefaultView>

            </telerikChart:RadChart>
        </StackPanel>


    </Grid>
</UserControl>
